package com.example.lee1.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.lee1.dao.TestTableDao;
import com.example.lee1.entity.TestTableEntity;
import com.example.lee1.service.TestTableService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("testTableService")
public class TestTableServiceImpl extends ServiceImpl<TestTableDao, TestTableEntity>
    implements TestTableService {

  @Override
  @Cacheable(value = {"queryPage123"}, key = "#root.method.name")//
  public List<TestTableEntity> queryPage(Map<String, Object> params) {
    List<TestTableEntity> entities = baseMapper.selectList(null);

    return entities;
  }
}
